﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Extjs_ReGSharp
{
	internal class PageData<T>
	{
		#region Data Memebers

		public int StartIndex { get; set; }
		public int Limit { get; set; }

		#endregion

		#region Public Methods

		public bool IsInPage(T item, int index)
		{
			bool result = index >= StartIndex && index < StartIndex + Limit;

			return result;
		}

		#endregion
	}
}
